package com.xunlai.infra.permission.manager.web.vo.sms;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author liang
 * @date 12/22/22 5:16 PM
 */
@Data
public class CreateSmsConfigReqVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 4925639591466298601L;

    @NotNull(message = "请选择渠道", groups = {ValidCreateChannelConfigGroup.class,ValidUpdateChannelConfigGroup.class})
    private Long channelId;

    private String channelCode;

    private String channelName;

    @NotEmpty(message = "请设置签名",groups = {ValidCreateChannelConfigGroup.class,ValidUpdateChannelConfigGroup.class})
    private String signature;

    @NotEmpty(message = "请设置apiKey",groups = {ValidCreateChannelConfigGroup.class,ValidUpdateChannelConfigGroup.class})
    private String channelApiKey;

//    @NotEmpty(message = "请设置签名",groups = {ValidCreateChannelConfigGroup.class,ValidUpdateChannelConfigGroup.class})
    private String channelApiSecret;

    private String remark;

    private String channelCallbackUrl;

    private Boolean enable;

    public interface ValidCreateChannelConfigGroup {

    }

    public interface ValidUpdateChannelConfigGroup {

    }
}
